package data;

import java.util.List;
import java.util.Map;

public class OpLogDao {
	public static int countByParams(DaoSession daoSession, Map<String,Object> params){
		return (Integer)daoSession.selectOne(
			"FINGERDB_OPLOG.CountByParams", params);
	}

	@SuppressWarnings("unchecked")
	public static List<OpLogBean> selectByParams(DaoSession daoSession, 
			Map<String,Object> params, int offset, int limit){
		return (List<OpLogBean>)daoSession.selectList(
			"FINGERDB_OPLOG.selectByParams", params, offset, limit);
	}

	public static void insert(DaoSession daoSession, OpLogBean oplog){
		daoSession.insert("FINGERDB_OPLOG.insert", oplog);
	}
}
